home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / cmdity / clicker.lha / Clicker / Source / sample.c < prev    next >
C/C++ Source or Header  |  1996-05-17  |  842b  |  29 lines

  1. /*  File:         sample.c
  2.  *  Created:      07-04-96
  3.  *  Updated:      17-05-96
  4.  *  Version:      1.3
  5.  *  Project:      Clicker
  6.  *  Owner:        Jeroen Vermeulen
  7.  *  Requirements: KickStart V39+
  8.  *  Legal:        PD
  9.  *  Status:       Release
  10.  */
  11. #include "sample.h"
  12.  
  13. /* NOTE: THE DATA IN THIS FILE MUST BE COMPILED FOR *CHIP* MEMORY */
  14.  
  15. /* Define CHIPMEM_DIRECTIVE to __chip or whatever your compiler needs to put a
  16.  * variable in CHIP memory.
  17.  */
  18.  
  19. /* This one's for StormC: */
  20. #pragma chip
  21.  
  22. /* Here's our basic built-in sample.  It's a very crude sine wave but it should
  23.  * do for those very short intervals.
  24.  * NOTE:  SAMPLELENGTH must be defined to the length of this array!
  25.  */
  26. CHIPMEMDIRECTIVE
  27. const signed char Sample[SAMPLELENGTH] = { 0, 60, 100, 127, 100, 60,
  28.                                              0, -60, -100, -127, -100, -60 };
  29.